package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TTaskCenterDao;
import com.qianli.cashmama.trade.entity.TTaskCenterEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: sm
 * Date: 2017-07-21
 * Time: 09:10:21.147
 */

@Repository
public class TTaskCenterDaoImpl extends AbstractBaseMapper<TTaskCenterEntity> implements TTaskCenterDao {

    @Override
    public List<TTaskCenterEntity> selectListByStatusAndTypeAndPage(List<Integer> statusList, int type, int retryCount, Page page) {
        Map<String, Object> map = new HashMap<>();
        map.put("status", statusList);
        map.put("type", type);
        map.put("retryCount", retryCount);
        map.put("page", page);
        return getSqlSession().selectList(getStatement("selectListByStatusAndTypeAndPage"), map);
    }
}